/*
 * 表单相关样式
 */
form {
    background-color: #fff;
    padding: 0 20px;
    border-radius: 5px;
    width: 400px;
    p, .file {
        margin: 20px 0;
        display: flex;
        align-items: center;
        white-space: nowrap;
        width: 100%;
        overflow: hidden;
        label.text-right {
            width: 80px;
        }
    }

    /* 标题 */
    .title {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        span {
            font-size: 25px;
            font-weight: bold;
        }
        a {
            font-size: 14px;
            color: #ff0000;
            font-weight: 600;
        }
    }
    /* 标题 end */

    /* 输入框 */
    input {
        border: 1px solid #ccc;
        flex: 1;
        height: 40px;
        padding: 0 10px;
        border-radius: 5px;
        &:focus {
            border-color: @color-primary;
            outline-color: @color-primary;
        }
    }

    /* 文件输入框 */
    .file {
        .image {
            width: 100px;
            height: 100px;
            margin-right: 20px;
            border: 1px solid var(--color-grey);
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f6f6f6;
            svg {
                width: 30px;
                height: 30px;
                color: #909399;
            }
            img {
                object-fit: cover;
            }
        }
        input[type='file'] {
            display: none;
        }
    }
    /* 文件输入框 end */

    /* 单选框 */
    input[type='radio'] {
        height: 18px;
        width: 18px;
        flex: none;
        margin-right: 5px;
        cursor: pointer;
        vertical-align: middle;
    }
    label[for] {
        cursor: pointer;
    }
    /* 单选框 end */

    /* 数字输入框 */
    input[type="number"] {
        padding-right: 0;
        &::-webkit-outer-spin-button,
        &::-webkit-inner-spin-button {
            height: 40px;
            width: 40px;
            cursor: pointer;
            padding: 0 5px;
        }
    }
    /* 数字输入框 end */

    /* 验证码输入框 */
    .captcha {
        input {
            max-width: 120px;
            min-width: 110px;
        }
        img {
            height: 40px;
            margin-left: 10px;
            cursor: pointer;
        }
    }
    /* 验证码输入框 end */
}